home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / tests / fpunit / fpunit.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-21  |  1.1 KB  |  43 lines

  1. /*
  2.  * fpunit.c --
  3.  *
  4.  *    Program for testing floating point instruction problems from user mode.
  5.  *
  6.  * Copyright 1989 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. int    testValue = 0x33;
  17.  
  18. /*
  19.  * ----------------------------------------------------------------------
  20.  *
  21.  * main --
  22.  *
  23.  *    Test whatever floating point instructions from user mode.  The
  24.  *    contents of this routine depend upon whatever I'm testing at the
  25.  *    moment.  This is a temporary tester for the sun4 port.
  26.  *
  27.  * Results:
  28.  *    None.
  29.  *
  30.  * Side effects:
  31.  *    None.
  32.  *
  33.  * ----------------------------------------------------------------------
  34.  */
  35. main()
  36. {
  37.     TestFp();
  38.     printf("Hello there.\n");
  39.     printf("The value is %f\n", 0x33);
  40.     printf("Hello again.\n");
  41.     exit(0);
  42. }
  43.